package com.example.capsule.repository;

import com.example.capsule.entity.UserBinding;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface UserBindingRepository extends JpaRepository<UserBinding, Long> {
    Optional<UserBinding> findByContact(String contact);
    Optional<UserBinding> findByOpenid(String openid);
}